feat(cli): expose application commands over MCP - #690
Open
kmbroai wants to merge 3 commits into
Open
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
Security findingsBlocking findings (1)
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Security Review
Here are some automated security review suggestions for this pull request.
Reviewed commit: 97af97f304
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MCP clients can currently run scans but must switch to the CLI for the rest of the security workflow. This adds application workflow commands to the same MCP server, so agents can inspect saved scans, import and triage findings, validate or patch them, export results, and publish findings.
Stacked on #682. This PR targets
dev/kyleb/mcp-scansand incorporates the updated #682 branch after its merge frommain.Changes
args,options, and optionalworkingDirectory; command group names use underscores. Existingscanandinfoinputs stay unchanged. No CLI commands, flags, environment variables, or defaults change.serveanddedupecommands as local CLI actions. Preserve the existing 22-tool MCP scope during the merge and expose only Linear publication, without custom-publication-only inputs.main, so the MCP smoke tests run in the minimal build image. Runtime requirements are unchanged.Testing
git diff --check: passed.Tests use isolated synthetic fixtures; no billable scans, changes to existing credentials, or external issue publication were performed.
Risk and rollout
#682 must merge first; this PR can then be retargeted to
main. Neither PR is merged by this change.The new tools have the same local filesystem and credential access as the CLI. Some commands can make billable model calls, modify files or stored findings, remove stored sign-in, or publish external issues and pull requests; tool annotations and server instructions describe those effects. Cancellation stops work but does not roll back completed side effects. Authentication setup remains outside MCP, and commands that normally offer terminal pickers need explicit inputs.
Public disclosure review